package com.movie.ticket.sale.ticketassembly.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.movie.ticket.sale.moviecommon.model.TOrderTicket;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Ticket
 * @since 2020-12-08
 */
public interface TOrderTicketMapper extends BaseMapper<TOrderTicket> {

    @Update("update t_order_ticket set state=1 where order_movie_id=#{id} and state=-1")
    void payedChangeState(int id);
}
